package com.xh.common.thread.ext.executor;

/**
 * 线程框架运行时关键位置的探测器，用于单元测试
 */
public interface LevelExecutorDetector {

    void onExecute(Command command);

    void onAddCoreWorker(Command command, int level);

    void onOfferWaitQueue(Command command, int level);

    void onAddExtraWorker(Command command, int level);

    void onOfferNormalQueue(Command command);

    void beforeExecute(Command command, int level, Thread thread);

    void afterExecute(Command command, int level, Throwable t);
}
